﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;

namespace KELT.KELTObjects.LibraryObjectModel
{
    public class ImageObj : MultimediaObj
    {
        #region for Image Object Size
        int _scaledWidth = 250;
        int _scaledHeight = 250;

        public int ScaledWidth
        {
            get { return _scaledWidth; }
            set { _scaledWidth = value; NotifyPropertyChanged("ScaledWidth"); }
        }
        public int ScaledHeight
        {
            get { return _scaledHeight; }
            set { _scaledHeight = value; NotifyPropertyChanged("ScaledHeight"); }
        }
        #endregion

        public ImageObj()
        {
            objectType = "ImageObj";
        }
        #region XML
        public override void GetObjInfoXML(XmlWriter writer)
        {
            writer.WriteStartElement("ImageObj");
            {
                writer.WriteElementString("ScaledWidth", ScaledWidth.ToString());
                writer.WriteElementString("ScaledHeight", ScaledHeight.ToString());
            }
            writer.WriteEndElement();
        }
        #endregion
    }
}
